// Club.Employee 人员管理
export default [
  { // 人员管理
    path: 'personnelManage',
    redirect: { name: 'Role' },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/index.vue'),
    children: [
      {
        path: 'role',
        name: 'Role',
        meta: {
          title: 'role',
          code: 'Club.Employee'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/roleList.vue')
      },
      {
        path: 'staff',
        name: 'Staff',
        redirect: { name: 'StaffList' },
        meta: {
          title: 'staff',
          code: 'Club.Employee',
          parentRouteName: 'Staff'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/editStaff/index.vue'),
        children: [
          {
            path: 'staffList',
            name: 'StaffList',
            meta: {
              code: 'Club.Employee',
              parentRouteName: 'Staff'
            },
            component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/editStaff/staffList.vue')
          },
          {
            path: 'editstaff',
            name: 'Editstaff',
            meta: {
              code: 'Club.Employee',
              parentRouteName: 'Staff'
            },
            component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/editStaff/editStaff.vue')
          }
        ]
      },
      {
        path: 'student',
        name: 'Student',
        redirect: { name: 'StudentList' },
        meta: {
          title: 'student',
          code: 'Club.Employee',
          parentRouteName: 'Student'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/editStudent/index.vue'),
        children: [
          {
            path: 'studentList',
            name: 'StudentList',
            meta: {
              code: 'Club.Employee',
              parentRouteName: 'Student'
            },
            component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/editStudent/studentList.vue')
          },
          {
            path: 'studentType',
            name: 'StudentType',
            meta: {
              code: 'Club.Employee',
              parentRouteName: 'Student'
            },
            component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/personnelManage/editStudent/studentType.vue')
          }
        ]
      }

    ]
  }
];
